package emulator.util;

import java.nio.ByteBuffer;

public class ByteBufferReader {
	public static int getByte(ByteBuffer buffer)
	{
		return ByteHelper.byteToInt(buffer.get());
	}

	public static String toString(ByteBuffer data) {
		String string = "";
		while (data.hasRemaining())
			string += (char)data.get();
		return string;
	}
}
